import { ref, reactive } from 'vue'

// 表单项数据数据
export const formLists = reactive([
  {
    type: 'input',
    field: 'a',
    placeholder: '商品名称',
  },
  {
    type: 'input',
    field: 'B',
    placeholder: '订单号',
  },
  {
    type: 'input',
    field: 'C',
    placeholder: '客户手机号',
  },
  {
    type: 'input',
    field: 'C',
    placeholder: '客户姓名',
  },
  {
    type: 'date',
    field: 'e',
    placeholder: '下单开始时间',
  },
  {
    type: 'date',
    field: 'e2',
    placeholder: '下单结束时间',
  },
  {
    type: 'select',
    field: 'f',
    placeholder: '是否租满即送',
    options: [
      {
        label: '是',
        code: 1,
      },
      {
        label: '否',
        code: 2,
      },
    ],
  },
  {
    type: 'select',
    field: 'f',
    placeholder: '订单审核人',
    options: [
      {
        label: '张三',
        code: 1,
      },
      {
        label: '李四',
        code: 2,
      },
    ],
  },
  {
    type: 'input',
    field: 'h',
    placeholder: '省#市#区#县',
  },
  {
    type: 'select',
    field: 'n',
    placeholder: '首期扣款状态',
    options: [
      {
        label: '扣款成功',
        code: 1,
      },
      {
        label: '扣款失败',
        code: 2,
      },
    ],
  },

  {
    type: 'actions',
    field: 'actions',
    buttons: [
      {
        type: 'primary',
        text: '搜索',
        // icon: 'search-outlined',
        clickType: 1,
      },
      {
        type: 'primary',
        text: '重置搜索',
        icon: '',
        ghost: true,
        clickType: 2,
      },
    ],
  },
])

export const columnData = [
  {
    title: '序号',
    dataIndex: 'old',
    key: 'old',
    width: 80,
    align: 'center',
    ellipsis: true,
    slotName: 'content',
  },
  {
    title: '订单号',
    dataIndex: 'money',
    key: 'money',
    width: 80,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '认证姓名',
    dataIndex: 'aa',
    key: 'aa',
    width: 80,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '客户手机号',
    dataIndex: 'a',
    key: 'a',
    width: 80,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '性别',
    dataIndex: 'aaa',
    key: 'aaa',
    width: 120,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '年龄',
    dataIndex: 'z',
    key: 'z',
    width: 120,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '商品名称',
    dataIndex: 'e',
    key: 'e',
    width: 100,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '租赁期数',
    dataIndex: 'cc',
    key: 'cc',
    width: 100,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '订单子状态',
    dataIndex: 'eee',
    key: 'eeee',
    width: 100,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '添加时间',
    dataIndex: 'll',
    key: 'll',
    width: 120,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '审核人',
    dataIndex: 'lwl',
    key: 'lwl',
    width: 120,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '备注',
    dataIndex: 'lel',
    key: 'lel',
    width: 120,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '认证地址',
    dataIndex: 'lrl',
    key: 'lrl',
    width: 120,
    align: 'center',
    ellipsis: true,
  },
  // {
  //   title: '操作',
  //   dataIndex: 'action',
  //   key: 'action',
  //   width: 120,
  //   align: 'center',
  //   slotName: 'handler',
  //   fixed: 'right',
  // },
]
